package com.freewater.springboot.demo.ioc.qualifier.registqualifier;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Autowired;

@Getter
@Setter
public class MovieRecommender implements BeanNameAware {

    private String beanName;

    @Autowired
    @MovieQualifier(genre = "Action", format = Format.VHS)
    private MovieCatalog mc1;

    @Autowired
    @MovieQualifier(genre = "Action", format = Format.DVD)
    private MovieCatalog mc2;
}
